import logging

def log_caiji():
    logging.basicConfig(filename='aa.txt',level=logging.DEBUG,filemode='w+',
                        format='%(levelname)s-%(lineno)s-%(asctime)s-%(message)s')